                    <div id="register_block">
                        <div id="block_head_blank" class="register_block_head scroll_to">
                            <?php echo $block_title; ?>
                        </div>
                        
                        <div id="register_block_body">
			    <div id="register">
				<form action="<?php echo base_url(); ?>user/register/step2" method="post" accept-charset="utf-8" class="email" id="registerform">
				    <h3>สมัครสมาชิก</h3>
				    <div>
					<span for="email">อีเมล์ : </span>
					<input type="text" name="email" value="" id="email"  />
				    </div>
				    <div class="hidden">
					<input type="radio" name="group" value="1" /><span for="group">สมาชิกทั่วไป</span>
					<input type="radio" name="group" value="2" checked="checked"   /><span for="group">ผู้ประกอบการ</span>
				    </div>
				    <div>
					<span for="registerformsubmit">&nbsp;</span>
					<input type="submit" name="registerformsubmit" id="registerformsubmit" value="ขั้นตอนต่อไป >>"  />
				    </div>
				</form>			    
			    </div>
			    
			    <div id="login">
				<form action="<?php echo base_url(); ?>user/login_auth" method="post" accept-charset="utf-8" class="email" id="loginform">
				    <h3>เข้าสู่ระบบ</h3>
				    <div>
					<span for="username">ชื่อผู้ใช้ : </span>
					<input type="text" name="username" value="" id="username"  />
				    </div>
				    <div>
					<span for="password">รหัสผ่าน : </span>
					<input type="password" name="password" value="" id="password"  />
				    </div>
				    <div>
					<span for="registerformsubmit">&nbsp;</span>
					<input type="submit" name="loginformsubmit" id="loginformsubmit" value="เข้าสู่ระบบ"  />
					<a href="<?php echo base_url(); ?>user/forgotpass" title="ลืมรหัสผ่าน">ลืมรหัสผ่าน</a> | <a href="<?php echo base_url(); ?>user/email-confirm" title="ยืนยันอีเมล์">ยืนยันอีเมล์</a> | <a href="<?php echo base_url(); ?>user/register" title="สมัครสมาชิก">สมัครสมาชิก</a>
				    </div>
				</form>
			    </div>
			    <div class="clear"></div>
                        </div>
                        
                        <div id="register_block_footer">
                            
                        </div>
                    </div>
		    <script type="text/javascript" src="<?php echo js_asset_url('jquery.validate.min.js'); ?>"></script>
		    <script type="text/javascript">
			$(document).ready(function(){
			    $("#registerform").validate({
				rules: {
				    email: {
					required: true,
					email: true,
					remote: '<?php echo site_url(); ?>user/email_existed'
				    }
				},
				messages: {
				    email: {
					required: "&nbsp;&nbsp;&nbsp;&nbsp;<em>กรุณากรอกอีเมล์</em>",
					email: "&nbsp;&nbsp;&nbsp;&nbsp;<em>อีเมล์ไม่ถูกต้อง</em>",
					remote: "&nbsp;&nbsp;&nbsp;&nbsp;<em>อีเมล์นี้ถูกใช้ไปแล้ว</em>"
				    }
				}
			    });
			    
			    $('#registerformsubmit').click(function(){
				if($("#registerform").valid()){
				    $("#registerform").submit();
				}
			    });
			    
			    $("#loginform").validate({
				rules: {
				    username: {
					required: true
				    },
				    password: {
					required: true
				    }
				},
				messages: {
				    username: {
					required: "&nbsp;&nbsp;&nbsp;&nbsp;<em>กรุณากรอกชื่อผู้ใช้</em>",
				    },
				    password: {
					required: "&nbsp;&nbsp;&nbsp;&nbsp;<em>กรุณากรอกรหัสผ่าน</em>",
				    }
				}
			    });
			    
			    $('#loginformsubmit').click(function(){
				if($("#loginform").valid()){
				    $("#loginform").submit();
				}
			    });
			});
		    </script>
		    <style>
			#registerform span{
			    width:50px;
			}
			#registerform #email{
			    width:190px;
			}
			#login span{
			    width:70px;
			}
			#login #username ,#login #password{
			    /*width:170px;*/
			}
			#login a{
			    color:#666666;
			    font-size:11px;
			}
		    </style>
		    